package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * IoT数据_六面控温用电量记录对象 iot_cube_electricity_consumption_history
 *
 * @author ruoyi
 * @date 2025-04-02
 */
@TableName(value = "iot_cube_electricity_consumption_history")
@Data
@ApiModel("IoT数据_六面控温用电量记录")
public class IotCubeElectricityConsumptionHistory {
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @ApiModelProperty("自增ID")
    private Long id;

    /** 仓房ID */
    @Excel(name = "仓房ID")
    @ApiModelProperty("仓房ID")
    private Long warehouseId;

    /** 总累积用电量(能耗) */
    @Excel(name = "总累积用电量(能耗)")
    @ApiModelProperty("总累积用电量(能耗)")
    private BigDecimal ecTotal;

    /** 粮面空调1累积用电量(能耗) */
    @Excel(name = "粮面空调1累积用电量(能耗)")
    @ApiModelProperty("粮面空调1累积用电量(能耗)")
    private BigDecimal ecAc1;

    /** 粮面空调2累积用电量(能耗) */
    @Excel(name = "粮面空调2累积用电量(能耗)")
    @ApiModelProperty("粮面空调2累积用电量(能耗)")
    private BigDecimal ecAc2;

    /** 水冷机组1累积用电量(能耗) */
    @Excel(name = "水冷机组1累积用电量(能耗)")
    @ApiModelProperty("水冷机组1累积用电量(能耗)")
    private BigDecimal ecLc1;

    /** 水冷机组2累积用电量(能耗) */
    @Excel(name = "水冷机组2累积用电量(能耗)")
    @ApiModelProperty("水冷机组2累积用电量(能耗)")
    private BigDecimal ecLc2;

    /** 总日用电量(能耗) */
    @Excel(name = "总日用电量(能耗)")
    @ApiModelProperty("总日用电量(能耗)")
    private BigDecimal dailyTotal;

    /** 粮面空调1日用电量(能耗) */
    @Excel(name = "粮面空调1日用电量(能耗)")
    @ApiModelProperty("粮面空调1日用电量(能耗)")
    private BigDecimal dailyAc1;

    /** 粮面空调2日用电量(能耗) */
    @Excel(name = "粮面空调2日用电量(能耗)")
    @ApiModelProperty("粮面空调2日用电量(能耗)")
    private BigDecimal dailyAc2;

    /**
     * 水冷机组1日用电量(能耗)
     */
    @Excel(name = "水冷机组1日用电量(能耗)")
    @ApiModelProperty("水冷机组1日用电量(能耗)")
    private BigDecimal dailyLc1;

    /**
     * 水冷机组2日用电量(能耗)
     */
    @Excel(name = "水冷机组2日用电量(能耗)")
    @ApiModelProperty("水冷机组2日用电量(能耗)")
    private BigDecimal dailyLc2;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    LocalDate startDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    LocalDate endDate;

    @ApiModelProperty("1总功率 2粮面1 3粮面2 4水冷1 5水冷2")
    Integer type;
}
